Here are diffs to apply to LSC 3.0 stdio library sources to add the following
functionality:
* %k and %lk formats for printf() (& Co.)
These formats print ints (%k) and longs (%lk) as characters, useful for ResType values.
* New 'device' ".SF" for fopen() and friends.
The 'device' ".SF" causes fopen() is prompt for a file using the Standard File get (read/append access) or put (write access) dialogs. This saves the user calling Standard File themselves, converting the volRef/name pair to a full pathname, and then calling fopen()...
* Added fdopen() and fdreopen() routines.
These mimic their Unix counterparts but take a volume reference as well as a name.
* Added in asm{...} statements.
Doesn't add functionality, just decreases size to offset increase caused by new code...
The diffs are for the files printf-3.c, stdopen.c and stdio.h.
Enjoy,
Nigel (np@doc.ic.ac.uk)
********************************
Filename: printf-3.c, new file.
--------------------------------
Filename: printf-3.c, original file.
7 */
8 /*
9 Modified by Nigel Perry, May 1989
10
11 Added %k and %lk format to print word/longs as characters